# -*- coding: utf-8 -*-

import scrapy
from bs4 import BeautifulSoup
from finance.items import StockItem
from scrapy.http import  Request
import re

import json
import os

class StockDetail(scrapy.Spider):
	name = "stockdetail_"
	allowed_demains = ["sina.com.cn"]

	def start_requests(self):
		url = "http://money.finance.sina.com.cn/quotes_service/api/json_v2.php/Market_Center.getHQNodes"
		return [scrapy.FormRequest(url,callback=self.parse)]

	def parse(self,response):
		vec = []
		html_doc = response.body
		ss = html_doc.decode('GBK').encode('utf-8')
